
// axios
import request from './http/request';

export function list(data) {
	return request({
		url: '/course/list',
		method: 'post',
		data,
		hideloading: false
	});
}
export function courseAll(data) {
	return request({
		url: '/course/all',
		method: 'post',
		data,
		hideloading: false
	});
}
export function details(data) {
	return request({
		url: '/course/findById',
		method: 'post',
		data,
		hideloading: false
	});
}
export function courseById(data){
	return request({
		url: '/course/findById',
		method: 'post',
		data,
		hideloading: false
	});
}
export function likeCourseById(data){
	return request({
		url: '/likeCourse/all',
		method: 'post',
		data,
		hideloading: false
	});
}
export function likeCourseDel(data){
	return request({
		url: '/likeCourse/del',
		method: 'post',
		data,
		hideloading: false
	});
}
export function likeCourseAdd(data){
	return request({
		url: '/likeCourse/add',
		method: 'post',
		data,
		hideloading: false
	});
}
export function saveCourseById(data){
	return request({
		url: '/collectCourse/all',
		method: 'post',
		data,
		hideloading: false
	});
}
export function saveCourseAdd(data){
	return request({
		url:'/collectCourse/add',
		method: 'post',
		data,
		hideloading: false
	});
}
export function saveCourseDel(data){
	return request({
		url: '/collectCourse/del',
		method: 'post',
		data,
		hideloading: false
	});
}
